<div id="content">
  <div id="content-header">
    <div id="breadcrumb"> <a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a> 
    <a href="#" class="current">Danh sách thể loại</a> </div>
  </div>
  {$notice}
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
      <form action="categories_delete_all.php" method="post">
        <div class="widget-box">
        
          <div class="widget-title">
           <div class="buttons" style="position:absolute;right:175px">
	       <a title="Icon Title" class="btn btn-mini" href="categories_add.php"><i class="icon-shopping-cart"></i>Thêm Danh Sách</a>							
        </div>
             <span class="icon" ><i class="icon-trash" style="width:20px;"></i><input class="btn btn-mini" type="submit" value="Xóa" style="border-radius:50px;"/></span>  
            <h5>Thể loại [Danh sách]</h5>
          </div>
    
            <table class="table table-bordered data-table">
              <thead>
                <tr>
                <th style="width:40px;">
                   
                        <input type="checkbox" />
                    
                    </th>
                  <th>Mã</th>
                 
                  <th>Tiêu Đề</th>
                  <th>Thể loại bài viết</th>
                  <th>Thể loại cha</th>
                  <th>Vị trí</th>
                  <th>Tổng số bài</th>
                  <th>Hiển thị</th>
                  <th>Hình ảnh</th>
                  <th>Thao Tác</th>
                  
                </tr>
              </thead>
              <tbody>
                {foreach $read_list as $k=>$category}
                    {if $k==0}
                <tr class="gradeX" style="background:#A9B9CB"> 
                    {/if}
                <td style="text-align:center">
                    
                        <input type="checkbox" name="data[{$category.id}]" value="{$category.id}"/>
                    
                    </td>
               	  <td>{$category.id}</td>
                  <td>{$category.category_name}</td>
                  <td>{if $category.type_category==0}Tin Tức{else}Thông Tin{/if}</td>
                  <td>{print_name($read_list,$category.parent)}</td>
                  <td>{$category.location}</td>
                  <td class="center">{$category.count}</td>
                  <td >
                  <a href="categories_update_shows.php?id={$category.id}"><i class="icon-eye-{if $category.shows == 1}open{else}close{/if}"></i></a>
                  </td>
                  <td><img src="/upload/categories/{$category.day_time|date_format:'%m-%Y'}/{$category.image}" style="max-width:40px" /></td>
                  
               
                  <td class="center">
                  		<a href="categories_update.php?id={$category.id}"><i class="icon icon-pencil"></i></a>
                        <a href="categories_delete.php?id={$category.id}"><i class="icon icon-remove"></i></a>
                  </td>
                </tr>
             
                 {/foreach}
                
                
                
                
                
                
                
                
                
              </tbody>
            </table>
          </div>
          </form>
        </div>
        
        
        
        
      </div>
    </div>
  </div>
